<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class User_model extends CI_Model
{
	
	public function __construct()
	{
		parent::__construct();

	}
	
	public function get_my_tasks()
	{
		return $this->db->order_by('id','DESC')->get_where('tasks',array('user_id'=>$this->session->userdata('user_id')),5)->result();
	}
	
}
